package publish

type PubRequest struct {
	AppID      int    `form:"appID" json:"appID" binding:"required"`
	Deploy_env string `form:"deploy_env" json:"deploy_env" binding:"required"`
	Branch     string `form:"BRANCH" json:"BRANCH" binding:"required"`
	Env        string `form:"env" json:"env" binding:"required"`
	AutoDeploy bool   `form:"autoDeploy" json:"autoDeploy"`
	Parent1    string `form:"parent1" json:"parent1"`
	Parent2    string `form:"parent2" json:"parent2"`
}

// BatchPubRequest 批量发布请求
type BatchPubRequest struct {
	Requests []PubRequest `json:"requests" binding:"required,min=1"`
	// 批量构建的公共配置
	MaxParallel int `json:"maxParallel" binding:"required,min=1"` // 最大并行构建数
}
